package de.au.fi.calc.results;

import java.util.List;

import de.au.fi.domain.Stock;
import de.au.fi.domain.Stock.CapType;

public class ResultFactory {
	
	public static Result getResult(Stock stock){
		return new LevermannLargeCapResult(stock);
//		if(stock.getCapType()==CapType.LARGE)
//			return new LevermannLargeCapResult(stock);
//		if(stock.getCapType()==CapType.MID)
//			return new LevermannMidCapResult(stock);
//		if(stock.getCapType()==CapType.SMALL)
//			return new LevermannSmallCapResult(stock);
//		if(stock.getCapType()==CapType.FINANCE)
//			return new LevermannFinanceCapResult(stock);
//		return null;
	}
	
	public static void addResults(List<Stock> stocks)
	{
		for (Stock stock : stocks) {
			stock.setResult(getResult(stock));
		}
	}
}
